package com.iptv.grape.net.Entity;

import com.google.gson.Gson;

public class RecommendResult {
    // 返回码
    private String rtCode;

    //
    private String reason;

    private String message;

    private RecommendDataResult data;

    public static RecommendResult createForJson(String json){
        try {
            RecommendResult res = new Gson().fromJson(json, RecommendResult.class);
            return res;
        }
        catch (Exception e){
            //Log.e("GrapeTVChannelTypeResult",e.getMessage() );
            return null;
        }
    }

    public String getRtCode() {
        return rtCode;
    }

    public void setRtCode(String rtCode) {
        this.rtCode = rtCode;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public RecommendDataResult getData() {
        return data;
    }

    public void setData(RecommendDataResult data) {
        this.data = data;
    }
}
